package com.autocar.reader.camera;

import com.google.zxing.client.result.ParsedResult;

public class ResultHandler {

  private final ParsedResult result;


  public ResultHandler(ParsedResult result) {
    this.result = result;
  }


  /**
   * Create a possibly styled string for the contents of the current barcode.
   *
   * @return The text to be displayed.
   */
  public CharSequence getDisplayContents() {
    String contents = result.getDisplayResult();
    return contents.replace("\r", "");
  }




}
